package com.danco.training.zaneuskaya.storage;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.danco.training.zaneuskaya.domain.Order;

public class OrderStorage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4279800479942185591L;

	private List<Order> orders;
	private static OrderStorage orderStorageInstance;

	private OrderStorage() {

		this.orders = new ArrayList<Order>();
	}

	public List<Order> getOrders() {
		return orders;
	}

	public void setOrders(List<Order> orders) {
		this.orders = orders;
	}

	public static OrderStorage getOrderStorageInstance() {
		if (orderStorageInstance == null) {
			orderStorageInstance = new OrderStorage();
		}

		return orderStorageInstance;
	}

}
